package com.ma.Dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ma.entity.Admin;
import com.ma.entity.Student;
import com.ma.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ProjectName: project
 * @Package: com.ma.Dao
 * @ClassName: AdminDao
 * @Author: YHHHH
 * @Description:
 * @Date: 2021/4/8 0:00
 * @Version: 1.0
 */

@Mapper
public interface AdminDao extends BaseMapper<Admin> {

    /*
    管理员登陆
     */
    Admin findAdmin(Admin admin);

    /*
    新建学生
     */
    Integer addStudent(Student student);

    /*
    查到所有学生
     */
    List<Student> findAllStudents();
    /*
    删除学生
     */
    Integer deleteStudents(@Param("number")String number);

    /*
    查看所有老师
     */
    List<Teacher> findAllTeacher();
    /*
    新增老师
     */
    Integer addTeacher(Teacher teacher);

}
